package com.wx.mapper;

import java.sql.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wx.pojo.IndexSource;
import com.wx.pojo.Source;

public interface SourceMapper {

	List<IndexSource> findSourceAll();

	List<IndexSource> findSourceRecent(Date date);

	List<IndexSource> findSourceTop();

	List<IndexSource> findSourceByCategory(Integer categoryId);

	Source findSourceBySourceId(Integer sourceId);

	List<IndexSource> findSourceByName(@Param("sourceName")String sourceName);

}
